package java67_1;

import java.util.Scanner;

public class ScoreStat {

	public static void main(String[] args) {
		// 输入
		Scanner in = new Scanner(System.in);
		System.out.println("请输入名字:");
		String name = in.next();// 输入字符串
		System.out.println("请输入java课程成绩:");
		int javaScore = in.nextInt();// 输入数字
		System.out.println("再输入C#的成绩:");
		int csharpScore = in.nextInt();
		System.out.println("请输入Sql成绩:");
		int sqlScore = in.nextInt();
		int total = javaScore + csharpScore + sqlScore;
		int avg = total / 3;
		System.out.println(name + " 平均分是:" + avg);
		int diff = javaScore - sqlScore;
		System.out.println(name + "java和Sql的成绩差是:" + diff);
	}

}
